state='persistent'
x=1
y=0.01
temp=1
a='persistent'
unstudy='giveup'
for i in range(365):
       if state == a and (temp in [1,2,3]):
                       x=x
                       temp = (temp+1)%7
       elif state == a and (temp in [0,4,5,6]):
                        x=x*(1+y)
                        temp = (temp+1)%7
       elif state == unstudy:
                           temp = 0
print("365天后的能力值是:{:.3f}".format(x))
